import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue'
import { resolve } from 'path'

// https://vitejs.dev/config/
export default defineConfig({
  plugins: [vue()],
  server: { //开启服务器配置
    host: '0.0.0.0', //IP地址
    port: '9090', //放服务器端口
    open: false //是否在浏览器打开
  },
  resolve: {
    alias : [
      {
        find: '@',
        replacement: resolve(__dirname, 'src/')
      }
    ]
  }
})
